package com.gitee.kenewstar.migration.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.kenewstar.migration.constants.Const;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

/**
 * @author kenewstar
 */
@Data
@TableName(value = "qrtz_triggers", schema = Const.HZERO_SCHEDULER)
public class JobTriggers {

    @TableField("SCHED_NAME")
    private String schedulerName;
    @TableField("TRIGGER_NAME")
    private String jobId;
    @TableField("TRIGGER_GROUP")
    private String tenantId;
    @TableField("JOB_NAME")
    private String jobName;
    @TableField("JOB_GROUP")
    private String jobGroup;
    @TableField("DESCRIPTION")
    private String description;
    @TableField("NEXT_FIRE_TIME")
    private Long nextFireTime;
    @TableField("PREV_FIRE_TIME")
    private Long prevFireTime;

    @TableField("PRIORITY")
    private Integer priority;
    @TableField("TRIGGER_STATE")
    private String triggerState;
    @TableField("TRIGGER_TYPE")
    private String triggerType;

    @TableField("START_TIME")
    private Long startTime;
    @TableField("END_TIME")
    private Long endTime;

    @TableField("CALENDAR_NAME")
    private String calendarName;
    @TableField("MISFIRE_INSTR")
    private Integer misfireInstr;
    @TableField(value = "JOB_DATA", jdbcType = JdbcType.BLOB)
    private Byte[] jobData;


}
